package com.xlh.service.courseTest;

import com.xlh.enums.FileTypeEnum;
import com.xlh.pojo.courseTest.CourseQuestionRepositoryDetails;

import java.util.List;
import java.util.Map;

/**
 * @author zhr 2019/3/2
 */
public interface QuestionRepositoryDetailsService {
    Map<Long, List<CourseQuestionRepositoryDetails>> getDetailsMap(List<Long> questionIdList, FileTypeEnum fileTypeEnum);

    List<CourseQuestionRepositoryDetails> getDetailsList(List<Long> questionIdList, FileTypeEnum fileTypeEnum);

    Map<Long,List<CourseQuestionRepositoryDetails>> getDetailsMap(List<Long> questionIds);

    /**
     * 回收答案脏数据
     */
    void cleanData();

    List<CourseQuestionRepositoryDetails> selectByQuestionId(Long questionId);

    Long selectMaxId();

    /**
     * 逻辑删除
     */
    void updateDelete(List<Long> questionIdList);

    void insertSelective(CourseQuestionRepositoryDetails details);

    void insertBatch(List<CourseQuestionRepositoryDetails> answerList);

    void deleteByQuestionId(Long questionId);
}
